package com.example.designpatterns.facade.subsystem;

/**
 * HardDrive子系统 - 负责硬盘数据读写
 */
public class HardDrive {
    public byte[] read(long lba, int size) {
        System.out.println("HardDrive: 从扇区 " + lba + " 读取 " + size + " bytes 数据");
        // 模拟创建数据并返回
        return new byte[size];
    }
    
    public void write(long lba, byte[] data) {
        System.out.println("HardDrive: 写入 " + data.length + " bytes 数据到扇区 " + lba);
    }
    
    public void seekTrack(int track) {
        System.out.println("HardDrive: 磁头寻道到 " + track);
    }
} 